/**
 * Created by devin on 17-1-9.
 */
(function() {
'use strict';

    angular
        .module('youzhu')
        .controller('LoginController', LoginController);

    LoginController.$inject = ['$scope','LoginService'];
    function LoginController($scope,LoginService) {
        var vm = this;
        
        vm.name="youzhu1";

        vm.login=function () {
            LoginService.post({
              name:vm.name,
                passwd:vm.passwd
            },function (data) {
                alert(data.returnData)
            });


        }


    }
})();